Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

base32-decode

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base32-decode

Base32 decoder with support for multiple variants.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48K
decreased by-16.73%
Maintainers
1
Weekly downloads
 
Created
Source

Base32 Decode

Base32 decoder with support for multiple variants.

Installation

npm install --save base32-decode

Usage

const base32Decode = require('base32-decode')

console.log(base32Decode('EHJQ6X0', 'Crockford'))
//=> ArrayBuffer { 4 }

console.log(base32Decode('ORSXG5A=', 'RFC4648'))
//=> ArrayBuffer { 4 }

console.log(base32Decode('EHIN6T0=', 'RFC4648-HEX'))
//=> ArrayBuffer { 4 }

API

base32Decode(input, variant)

  • input <String>
  • variant <String>
  • Return: <ArrayBuffer> The decoded raw data

Decode the data in input. variant should be one of the supported variants listed below.

  • 'RFC3548' - Alias for 'RFC4648'
  • 'RFC4648' - Base32 from RFC4648
  • 'RFC4648-HEX' - base32hex from RFC4648
  • 'Crockford' - Crockford's Base32

See also

Keywords

FAQs

Package last updated on 14 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc